package com.example.demo.dao;

import com.example.demo.pojo.SearchLog;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import javax.annotation.Resource;
import java.util.Map;

@Mapper
@CacheConfig(cacheNames = "users")
public interface SearchLogDao {
    int deleteByPrimaryKey(Long logId);

    int insert(SearchLog record);

    int insertSelective(SearchLog record);
    @Cacheable(key="#p0")
    Map  selectByPrimaryKey(String logKey);

    int updateByPrimaryKeySelective(SearchLog record);

    int updateByPrimaryKey(SearchLog record);
}